package com.example.demo.service;

import com.example.demo.pojo.entity.Result;
import com.example.demo.pojo.entity.User;

import javax.security.auth.login.AccountNotFoundException;

public interface UserService {
    Result register(String username, String password);

    User login(String username, String password) throws AccountNotFoundException;

    User getBuyId(Long id);
}
